package edu.hcmiu.portal.service.persistence;

public class hook_categoryUtil {
    private static hook_categoryPersistence _persistence;

    public static void cacheResult(
        edu.hcmiu.portal.model.hook_category hook_category) {
        getPersistence().cacheResult(hook_category);
    }

    public static void cacheResult(
        java.util.List<edu.hcmiu.portal.model.hook_category> hook_categories) {
        getPersistence().cacheResult(hook_categories);
    }

    public static void clearCache() {
        getPersistence().clearCache();
    }

    public static edu.hcmiu.portal.model.hook_category create(long catID) {
        return getPersistence().create(catID);
    }

    public static edu.hcmiu.portal.model.hook_category remove(long catID)
        throws com.liferay.portal.SystemException,
            edu.hcmiu.portal.NoSuchhook_categoryException {
        return getPersistence().remove(catID);
    }

    public static edu.hcmiu.portal.model.hook_category remove(
        edu.hcmiu.portal.model.hook_category hook_category)
        throws com.liferay.portal.SystemException {
        return getPersistence().remove(hook_category);
    }

    /**
     * @deprecated Use <code>update(hook_category hook_category, boolean merge)</code>.
     */
    public static edu.hcmiu.portal.model.hook_category update(
        edu.hcmiu.portal.model.hook_category hook_category)
        throws com.liferay.portal.SystemException {
        return getPersistence().update(hook_category);
    }

    /**
     * Add, update, or merge, the entity. This method also calls the model
     * listeners to trigger the proper events associated with adding, deleting,
     * or updating an entity.
     *
     * @param                hook_category the entity to add, update, or merge
     * @param                merge boolean value for whether to merge the entity. The
     *                                default value is false. Setting merge to true is more
     *                                expensive and should only be true when hook_category is
     *                                transient. See LEP-5473 for a detailed discussion of this
     *                                method.
     * @return                true if the portlet can be displayed via Ajax
     */
    public static edu.hcmiu.portal.model.hook_category update(
        edu.hcmiu.portal.model.hook_category hook_category, boolean merge)
        throws com.liferay.portal.SystemException {
        return getPersistence().update(hook_category, merge);
    }

    public static edu.hcmiu.portal.model.hook_category updateImpl(
        edu.hcmiu.portal.model.hook_category hook_category, boolean merge)
        throws com.liferay.portal.SystemException {
        return getPersistence().updateImpl(hook_category, merge);
    }

    public static edu.hcmiu.portal.model.hook_category findByPrimaryKey(
        long catID)
        throws com.liferay.portal.SystemException,
            edu.hcmiu.portal.NoSuchhook_categoryException {
        return getPersistence().findByPrimaryKey(catID);
    }

    public static edu.hcmiu.portal.model.hook_category fetchByPrimaryKey(
        long catID) throws com.liferay.portal.SystemException {
        return getPersistence().fetchByPrimaryKey(catID);
    }

    public static java.util.List<Object> findWithDynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
        throws com.liferay.portal.SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery);
    }

    public static java.util.List<Object> findWithDynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
        int end) throws com.liferay.portal.SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
    }

    public static java.util.List<edu.hcmiu.portal.model.hook_category> findAll()
        throws com.liferay.portal.SystemException {
        return getPersistence().findAll();
    }

    public static java.util.List<edu.hcmiu.portal.model.hook_category> findAll(
        int start, int end) throws com.liferay.portal.SystemException {
        return getPersistence().findAll(start, end);
    }

    public static java.util.List<edu.hcmiu.portal.model.hook_category> findAll(
        int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
        throws com.liferay.portal.SystemException {
        return getPersistence().findAll(start, end, obc);
    }

    public static void removeAll() throws com.liferay.portal.SystemException {
        getPersistence().removeAll();
    }

    public static int countAll() throws com.liferay.portal.SystemException {
        return getPersistence().countAll();
    }

    public static hook_categoryPersistence getPersistence() {
        return _persistence;
    }

    public void setPersistence(hook_categoryPersistence persistence) {
        _persistence = persistence;
    }
}
